import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';

@Component({
    selector: 'app-switch-btn',
    templateUrl: './switch-btn.component.html',
    styleUrls: ['./switch-btn.component.scss'],
})
export class SwitchBtnComponent implements OnInit {
    @Input() selectSwitch: boolean;
    @Output() checked: EventEmitter<boolean> = new EventEmitter<boolean>();

    constructor() {
    }

    ngOnInit() {
    }

    checkSwitch() {
        this.checked.emit(!this.selectSwitch);
    }

}
